package com.example.android.analytics;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class FirstActivity extends Activity {
  private TextView welcomeView;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.firstactivity);

    welcomeView = (TextView) findViewById(R.id.welcometextview);
  }

  public void sayHelloButtonPressed(View v) {
    welcomeView.setText("Welcome, user!");    
  }
}
